getRemainingLots

Determine the remaining lots in a lot-based security account, as of a specified date, accounting for all sales on or prior to that date.

Return

A map of transaction ID (key) to number of shares remaining for that transaction (value) of all remaining (unsold) shares in the account as of that date. Will return null if the security account doesn't use lot-based accounting.

Parameters

book

The data set that contains the transactions

secAcct

The security to compute the remaining lots for.

unrealizedAsOfDate

The date prior to which to get the unused lots.